# coding=utf-8


from __future__ import absolute_import
from django.apps import AppConfig
import os
# from .workers import *
# from data_keeper.util import *

NEWRAS_INIT = os.environ.get('NEWRAS_INIT', None)

class FenggeConfig(AppConfig):
    name = 'fengge'
    verbose_name = u'风格'

    def ready(self):
        if not NEWRAS_INIT:
            import fengge.signal_handlers
            from .utils import update_all_mods, remove_poplayer_tokens
            update_all_mods()

        #     from setting.models import UserProfile
        #     UserProfile.register_activity_handler('remove_poplayer_tokens', remove_poplayer_tokens)
        # # updateAllDatasetSchemas(point_data_keeper)
